
class_name CellInfoPlan
extends ColorRect




@onready var info = $Info




# 更新显示的信息
func update(_cell_info: Dictionary) -> void:
	var value = _cell_info
	info.text = value["name"] + " | " + \
		("可停留" if value["is_stay"] else "不可停留") + " | " + \
		("可经过" if value["is_through"] else "不可经过") + \
		" | cost:" + str(value["cost"]) + \
		"\n" + value["description"]




func start() -> void:
	show()




func end() -> void:
	hide()
